<#compress><div class="jqLookupWindow">
<a href="#" class="jqmClose" onclick="$('#${field_name}_jqm').jqmHide(); return false;">Close</a>
<#if form??>
<form action='${form_url}?prompt_data=${prompt_data}' method='post'>
<table>
${form.asTable()}
</table>
<input type="submit">
</form>
</#if>

<#if objects??>
<div class="pagination">
    <span class="step-links">
        <#if objects.hasPrevious >
			<a href="#" onclick="$('#${field_name}_jqm').load('${form_url}?prompt_data=${prompt_data}&page=${objects.previousPageNumber}&${query_string}'); return false;">previous</a>
        </#if>

        <span class="current">
            Page ${ objects.number } of ${ objects.paginator.numPages }.
        </span>

        <#if objects.hasNext >
            <a href="#" onclick="$('#${field_name}_jqm').load('${form_url}?prompt_data=${prompt_data}&page=${objects.nextPageNumber}&${query_string}'); return false;">next</a>
        </#if>
    </span>
</div>

<table>
  <#list objects.objectList as object>
    <tr onclick='return ${field_name}_update("${StringFormat12.format(display, object)}");'>
      <#list field_list as field>
        <#if field_index == 0>
          <td><a href='#' onclick='return ${field_name}_update("${StringFormat12.format(display, object)}");'>${(object[field])!'n/a'}</a></td>
        <#else>
          <td>${(object[field])!'n/a'}</td>
        </#if>
      </#list>
    </tr>
  </#list>
 </table> 
</#if>
</div>
</#compress>